using System.Collections.Generic;
using ITS.Core.Domain.Common;
using System;

namespace ITS.Core.Domain.News
{
    public class NewsItem
    {
        private ICollection<NewsTag> _newsTags;
        private ICollection<NewsCategory> _newsCategories;

        public int NewsItemID { get; set; }
        public string LanguageID { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public string Content { get; set; }
        public bool Active { get; set; }
        public DateTime ModifiedDate { get; set; }
        public DateTime DateCreated { get; set; }
        public string LinkText { get; set; }

        public virtual SupportedLanguage SupportedLanguage { get; set; }
        public virtual ICollection<NewsCategory> NewsCategories
        {
            get
            {
                return _newsCategories ?? (_newsCategories = new List<NewsCategory>());
            }
            protected set
            {
                _newsCategories = value;
            }
        }
        public virtual ICollection<NewsTag> NewsTags
        {
            get
            {
                return _newsTags ?? (_newsTags = new List<NewsTag>());
            }
            protected set
            {
                _newsTags = value;
            }
        }
    }
}
